export class PermissionInfo {
    id: number;
    name: string;
    slug: string;
    description: string;
    model: string;
    orderby: number;
    deleted_at: string;
    created_at: string;
    updated_at: string;
    constructor() {
        this.id = 0;
        this.name = '';
        this.slug = '';
        this.description = '';
        this.model = '';
        this.orderby = 0;
        this.deleted_at = '';
        this.created_at = '';
        this.updated_at = '';
    }
}

export class PermissionList {
    list: PermissionInfo[];
    constructor() {
        this.list = new Array<PermissionInfo>();
    }
}

export class AddPermission {
    name: string;
    slug: string;
    description: string;
    model: string;
    orderby: number;
    constructor() {
        this.name = '';
        this.slug = '';
        this.description = '';
        this.model = '';
        this.orderby = 1;
    }
}

export class EditPermission {
    id: number;
    name: string;
    slug: string;
    description: string;
    model: string;
    orderby: number;
    constructor() {
        this.id = 0;
        this.name = '';
        this.slug = '';
        this.description = '';
        this.model = '';
        this.orderby = 1;
    }
}